﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Player : MonoBehaviour {

	public AudioClip welcomeClip;   //声音片段
									// Use this for initialization
	void Start () {
		Invoke("PlayWelcomeClip", 6.5f); //8s 后调用 PlayWelcomeClip 方法
	}
	
	// Update is called once per frame
	void Update () {
		if(transform.localPosition.y > 0)
        {
			return;
        }
		//不让模型每次动
		//transform.Translate(new Vector3(0, 0.5f, 0) * Time.deltaTime);
	}

	private void PlayWelcomeClip()
	{//播放 Welcome 音频片段
		AudioSource.PlayClipAtPoint(welcomeClip, transform.position);
	}
}
